import interfaceConfig from './interface-config'

const interfacePath = {
  user: {
    login: `/login/login`, // [POST] 登陆
    collection: `${interfaceConfig.service}/user/collectionList`, // [GET] 我的收藏
    browse: `${interfaceConfig.service}/user/browseList`, // [GET] 最近浏览
    update: `${interfaceConfig.service}/user/updateUserInfo`, // [POST] 更新用户信息
    uploadUserHeadImg: `${interfaceConfig.service}/user/uploadUserHeadImg`, // [POST] 更新用户信息
    userLoginOut: `${interfaceConfig.service}/user/loginOut` // [POST] 退出登陆
  },
  article: {
    hot: `${interfaceConfig.service}/tpolicy/getHotPolicys`, // [GET] 热门文章
    newest: `${interfaceConfig.service}/tpolicy/getNewestPolicys`, // [GET] 最新文章
    detail: `${interfaceConfig.service}/tpolicy/getPolicyInfoById`, // [GET] 文章详情
    search: `${interfaceConfig.service}/tpolicy/selPolicyList`, // [GET] 搜索文章详情
    recordCollection: `${interfaceConfig.service}/tpolicy/collectionPolicy` // [GET] 记录我的收藏
  },
  policy: { // 政策
    receivePolicy: `${interfaceConfig.service}/tpolicy/getPolicyCatalog` // [GET] 政策
  }
}

export default interfacePath
